package com.subang.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;

/**
 * 用户积分明细对象 sys_user_points_detail
 * 
 * @author subei
 * @date 2025-08-13
 */
public class SysUserPointsDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 积分变动值（正数为增加，负数为减少） */
    @Excel(name = "积分变动值", readConverterExp = "正=数为增加，负数为减少")
    private Long pointsChange;

    /** 变动类型，如首次登录、每日登录、转发小程序、观看文章等 */
    @Excel(name = "变动类型，如首次登录、每日登录、转发小程序、观看文章等")
    private String changeType;

    /** 变动时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变动时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPointsChange(Long pointsChange) 
    {
        this.pointsChange = pointsChange;
    }

    public Long getPointsChange() 
    {
        return pointsChange;
    }

    public void setChangeType(String changeType) 
    {
        this.changeType = changeType;
    }

    public String getChangeType() 
    {
        return changeType;
    }

    public void setChangeTime(Date changeTime) 
    {
        this.changeTime = changeTime;
    }

    public Date getChangeTime() 
    {
        return changeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("pointsChange", getPointsChange())
            .append("changeType", getChangeType())
            .append("changeTime", getChangeTime())
            .toString();
    }
}
